<?php foreach ($list as $v){ ?>
    <div  class="list-item clearfix">
        <a href="<?php echo url('share_detail',['id'=>$v['id']]) ?>">
            <div class="item-img fl">
                <img src="<?php echo $v['user_head'] ?>" class="head-img" />
            </div>
            <div class="item-detail">
                <div class="detail1">
                    <span class="tag color1">生活杂谈</span>
                    <p class="title pfbold one-txt-cut">
                        <?php echo $v['title'] ?>
                    </p>
                </div>
                <div class="detail2">
                    <span><?php echo $v['appreciate_number'] ?> &nbsp;点赞</span>
                    <span><?php echo $v['comment_number'] ?> &nbsp;评论</span>
                </div>
                <div class="detail3">
                    <div class="text">
                        <?php echo $v['content'] ?>
                    </div>
                </div>
        </a>
        <div class="detail4">
            <p><?php echo $v['user_name'] ?>：<?php echo date('Y-m-d H:i:s',$v['add_time']) ?></p>
        </div>
    </div>
    </div>
<?php } ?>